package com.sskj.xgja.market.bean;

import java.io.Serializable;

public class MarketData implements Serializable {

    /**
     * id : null
     * code : HSIF
     * name : 恒指期货
     * volume : null
     * price : 0
     * openPrice : null
     * closePrice : null
     * prevClose : null
     * high : null
     * low : null
     * change : 0
     * changeRate : 0
     * date : 2019-03-22
     * time : null
     * createTime : null
     * status : null
     * timestamp : null
     */
    private String pname;// 搜索 币种取得字段
    private String id;
    private String code;
    private String name;
    private String volume;
    private String price;
    private String openPrice;
    private String closePrice;
    private String prevClose;
    private String high;
    private String low;
    private String change;
    private String changeRate;
    private String date;
    private String time;
    private String createTime;
    private String status;
    private long timestamp;
    private String shares;
    private String leverage_rz;
    private String leverage_rj;
    private String trans_fee;


    public String getTrans_fee() {
        return trans_fee;
    }

    public void setTrans_fee(String trans_fee) {
        this.trans_fee = trans_fee;
    }

    public String getLeverage_rz() {
        return leverage_rz;
    }

    public void setLeverage_rz(String leverage_rz) {
        this.leverage_rz = leverage_rz;
    }

    public String getLeverage_rj() {
        return leverage_rj;
    }

    public void setLeverage_rj(String leverage_rj) {
        this.leverage_rj = leverage_rj;
    }

    public String getShares() {
        return shares;
    }

    public void setShares(String shares) {
        this.shares = shares;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getOpenPrice() {
        return openPrice == null ? "0" : openPrice;
    }

    public void setOpenPrice(String openPrice) {
        this.openPrice = openPrice;
    }

    public String getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(String closePrice) {
        this.closePrice = closePrice;
    }

    public String getPrevClose() {
        return prevClose;
    }

    public void setPrevClose(String prevClose) {
        this.prevClose = prevClose;
    }

    public String getHigh() {
        return high;
    }

    public void setHigh(String high) {
        this.high = high;
    }

    public String getLow() {
        return low;
    }

    public void setLow(String low) {
        this.low = low;
    }

    public String getChange() {
        return change == null ? "0" : change;
    }

    public void setChange(String change) {
        this.change = change;
    }

    public String getChangeRate() {
        return changeRate;
    }

    public void setChangeRate(String changeRate) {
        this.changeRate = changeRate;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
